package com.hqyj.service.impl;

import com.hqyj.service.UserService;
import com.hqyj.vo.ResultInfo;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.subject.Subject;

public class UserServiceImpl implements UserService {
    @Override
    public ResultInfo login(String userName, String userPwd) {
        Subject subject = SecurityUtils.getSubject();
        UsernamePasswordToken token = new UsernamePasswordToken(userName, userPwd);
        subject.login(token);
        return null;
    }
}
